package com.shenmazong.manage.controller;

import com.shenmazong.cheat.entity.TbExamCheat;
import com.shenmazong.manage.entity.TbExamLayout;
import com.shenmazong.manage.entity.TbExamSubmit;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.shenmazong.manage.service.ExamManageService;


/**
 *controller Qi
 */
@Api(tags = {"考试安排管理"})
@RestController
public class ExamManageController {

    @Autowired
    private  ExamManageService  service;

    //考试安排新增
    @PostMapping("saveExamLayout")
    public ResultResponse saveExamLayout(@RequestBody TbExamLayout tbExamLayout){
        return service.saveExamLayout(tbExamLayout);
    }
    //考试安排删除
    @PostMapping("deleteExamLayout")
    public ResultResponse deleteExamLayout(@RequestBody BatchChooseIdVo chooseIdVo){
        return service.deleteExamLayout(chooseIdVo);
    }
    //考试安排修改
    @PostMapping("updateExamLayout")
    public ResultResponse updateExamLayout(@RequestBody TbExamLayout tbExamLayout){
        return service.updateExamLayout(tbExamLayout);
    }
    //考试安排列表
    @PostMapping("listExamLayout")
    public ResultResponse listExamLayout(@RequestBody ListParamVo paramVo){
        return service.listExamLayout(paramVo);
    }
    //考试提交内容新增
    @PostMapping("saveExamSubmit")
    public ResultResponse saveExamSubmit(@RequestBody TbExamSubmit tbExamSubmit){
        return service.saveExamSubmit(tbExamSubmit);
    }
    //考试提交内容删除
    @PostMapping("deleteExamSubmit")
    public ResultResponse deleteExamSubmit(@RequestBody BatchChooseIdVo chooseIdVo){
        return service.deleteExamSubmit(chooseIdVo);
    }
    //考试提交内容修改
    @PostMapping("updateExamSubmit")
    public ResultResponse updateExamSubmit(@RequestBody TbExamSubmit tbExamSubmit){
        return service.updateExamSubmit(tbExamSubmit);
    }
    //考试提交内容列表
    @PostMapping("listExamSubmit")
    public ResultResponse listExamSubmit(@RequestBody ListParamVo paramVo){
        return service.listExamSubmit(paramVo);
    }

}




